<?

class OpenDir extends Button {

    function render($sel) {
        if (($sel->isDirSelected() && ($sel->object != ''))) {
            return $this->renderButton('opendir',Config::getLink($_GET['path'].$_GET['object'].'/'),'Open','Open directory');
        } else {
            return $this->renderDisabledButton('opendir','Open','Open directory');
        }
    }

}

?>